<?php
/**
 * Byzantium Library
 *
 * @author David Mora <dla.mora@gmail.com>
 * @category   Byzantium
 * @package    Byzantium
 * @copyright  Creative Commons Attribution-Share Alike 3.0 United States License
 * 2009-2010 David Mora <dla.mora@gmail.com>
 * @license    http://creativecommons.org/licenses/by-sa/3.0/us/
 *
 */

/**
 * Base class for MVC Controllers
 *
 * @author David Mora <dla.mora@gmail.com>
 * @category   Byzantium
 * @package    Byzantium
 * @copyright  Creative Commons Attribution-Share Alike 3.0 United States License
 * 2009-2010 David Mora <dla.mora@gmail.com>
 * @license    http://creativecommons.org/licenses/by-sa/3.0/us/
 *
 */
class Byzantium_Controller extends Zend_Controller_Action
{
    /**
     *
     * @var Byzantium_Application
     */
    protected $_app;

    /**
     *
     * @param Zend_Controller_Request_Abstract $request
     * @param Zend_Controller_Response_Abstract $response
     * @param array $invokeArgs
     */
    public function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array())
    {
        $this->_app = Byzantium_Application::getInstance();
        parent::__construct($request, $response, $invokeArgs);
    }

    /**
     * @return Zend_Log
     */
    protected function getLogger()
    {
        return $this->_app->getLogger();
    }
}
